package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ItinerariesMapper;
import com.ruoyi.system.domain.Itineraries;
import com.ruoyi.system.service.IItinerariesService;

/**
 * 行程库模块Service业务层处理
 * 
 * @author 宋一鸣
 * @date 2025-05-16
 */
@Service
public class ItinerariesServiceImpl implements IItinerariesService 
{
    @Autowired
    private ItinerariesMapper itinerariesMapper;

    /**
     * 查询行程库模块
     * 
     * @param id 行程库模块主键
     * @return 行程库模块
     */
    @Override
    public Itineraries selectItinerariesById(Long id)
    {
        return itinerariesMapper.selectItinerariesById(id);
    }

    /**
     * 查询行程库模块列表
     * 
     * @param itineraries 行程库模块
     * @return 行程库模块
     */
    @Override
    public List<Itineraries> selectItinerariesList(Itineraries itineraries)
    {
        return itinerariesMapper.selectItinerariesList(itineraries);
    }

    /**
     * 新增行程库模块
     * 
     * @param itineraries 行程库模块
     * @return 结果
     */
    @Override
    public int insertItineraries(Itineraries itineraries)
    {
        return itinerariesMapper.insertItineraries(itineraries);
    }

    /**
     * 修改行程库模块
     * 
     * @param itineraries 行程库模块
     * @return 结果
     */
    @Override
    public int updateItineraries(Itineraries itineraries)
    {
        return itinerariesMapper.updateItineraries(itineraries);
    }

    /**
     * 批量删除行程库模块
     * 
     * @param ids 需要删除的行程库模块主键
     * @return 结果
     */
    @Override
    public int deleteItinerariesByIds(Long[] ids)
    {
        return itinerariesMapper.deleteItinerariesByIds(ids);
    }

    /**
     * 删除行程库模块信息
     * 
     * @param id 行程库模块主键
     * @return 结果
     */
    @Override
    public int deleteItinerariesById(Long id)
    {
        return itinerariesMapper.deleteItinerariesById(id);
    }
}
